package net.lab1024.sa.admin.module.app.api.login.domain;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import net.lab1024.sa.base.common.domain.RequestUser;
import net.lab1024.sa.base.common.enumeration.GenderEnum;
import net.lab1024.sa.base.common.enumeration.UserTypeEnum;
import net.lab1024.sa.base.common.swagger.SchemaEnum;

/**
 * 请求用户登录信息
 */
@Data
public class RequestAppUser implements RequestUser {

    @Schema(description = "用户ID")
    private Long userId;

    @Schema(description = "登录用户名")
    private String userName;

    @Schema(description = "用户类型")
    private UserTypeEnum userType;

    @Schema(description = "昵称")
    private String nickName;

    @Schema(description = "手机号码")
    private String phone;

    @Schema(description = "头像")
    private String avatar;

    @SchemaEnum(GenderEnum.class)
    private Integer gender;

    @Schema(description = "等级")
    private Integer level;

    @Schema(description = "企业id")
    private Long enterpriseId;

    @Schema(description = "企业名称")
    private String enterpriseName;

    @Schema(description = "是否禁用")
    private Boolean disabledFlag;

    @Schema(description = "备注")
    private String remark;

    @Schema(description = "客户端请求ip")
    private String ip;

    @Schema(description = "客户端请求 user-agent")
    private String userAgent;
}
